﻿using C1.Win.C1Ribbon;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace JsonYNCNumsys
{
    public partial class PaperBindForm : C1RibbonForm
    {
        public string PaperNo
        {
            get { return textBoxPaperNo.Text.Trim(); }
            set { textBoxPaperNo.Text = value; }
        }

        public string DwgNo
        {
            get { return textBoxPaperName.Text.Trim(); }
            set { textBoxPaperName.Text = value; }
        }
        public PaperBindForm()
        {
            InitializeComponent();
        }

        private void PaperBindForm_Load(object sender, EventArgs e)
        {

        }

        private void buttonFileSlect_Click(object sender, EventArgs e)
        {
            OpenFileDialog openDialog = new OpenFileDialog();
            openDialog.Filter = "图纸文件 (*.dwg)|*.dwg|所有文件(*.*)|*.*";
            openDialog.Title = @"选择图纸文件";
            if (openDialog.ShowDialog() == DialogResult.OK)
            {
                string filePath = openDialog.FileName;
                textBoxPaperName.Text = Path.GetFileName(filePath);
            }
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {

        }
    }
}
